<?php
include('inc/config.php');
include(_DOC_ROOT.'/inc/constants.php');
include(_DOC_ROOT.'/inc/functions.php');
include(_DOC_ROOT.'/language/english.php');
if($temp_page_active) {
	include(_SITE_TPL_PATH_.'site_temp.tpl');
	exit;
}
//$queryStr = trim($_SERVER['QUERY_STRING']);
$Q = explode('?',trim($_REQUEST['q']));
$queryStr = current($Q);
$reqArr = explode('/',$queryStr);
$module = $reqArr[0];
if($queryStr == '')
	include(_DOC_ROOT.'modules/home.php');
else
	switch($module){
		case  'about-us' : case  'careers' :  case  'our-services' :
			include(_DOC_ROOT.'modules/home.php');
		break;
		case  'register' : case  'logout' : 
			include(_DOC_ROOT.'modules/register.php');
		break;
		case  'wedding-tips' :
			include(_DOC_ROOT.'modules/wedding-tips.php');
		break;
		case  'contact-us' :
			include(_DOC_ROOT.'modules/contact-us.php');
		break;
		case  'packages' :
			include(_DOC_ROOT.'modules/packages.php');
		break;
		case  'wedding-packages' :
			include(_DOC_ROOT.'modules/package-listing.php');
		break;
		case  'package-detail' :
			include(_DOC_ROOT.'modules/package-detail.php');
		break;
		case  'package-customize' :
			include(_DOC_ROOT.'modules/package-cutomize.php');
		break;
		case  'package-book' :
			include(_DOC_ROOT.'modules/package-book.php');
		break;
		
		case  'venues' :
			include(_DOC_ROOT.'modules/venue-listing.php');
		case  'venue-detail' :
			include(_DOC_ROOT.'modules/venue-detail.php');
		break;
		default : 
			include(_DOC_ROOT.'modules/404.php');
	}
?>